//
//  CollegeStudent.m
//  OC02_方法
//
//  Created by dllo on 15/12/1.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "CollegeStudent.h"

@implementation CollegeStudent


- (void)setMajor:(NSString *)major{
    
    _major = major;
}
- (NSString *)major{
    return _major;
}
- (void)setAcademy:(NSString *)academy{
    
    _academy = academy;
}

- (NSString *)academy{
    return _academy;
}

/* 自定义初始化方法 */

- (instancetype)initWithName:(NSString *)name
                         age:(NSInteger)age
                         sex:(NSString *)sex
                      school:(NSString *)school
                      number:(NSInteger)number
                       major:(NSString *)major
                     academy:(NSString *)academy{
    
    self = [super initWithName:name age:age sex:sex school:school number:number];
    if (self) {
        _major = major;
        _academy = academy;
    }
    return self;
    
}






@end
